package com.ruoyi.easyfame.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 专家排班对象 tb_expert_schedule
 * 
 * @author xhb
 * @date 2025-08-20
 */
public class ExpertSchedule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private String  expertName;
    /** 排班ID */
    private Long id;

    /** 专家用户ID（关联sys_user表user_id） */
    @Excel(name = "专家用户ID", readConverterExp = "关=联sys_user表user_id")
    private Long expertId;

    /** 排班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "排班日期", width = 30, dateFormat = "HH:mm:ss")
    private Date scheduleDate;

    /** 开始时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "HH:mm:ss")
    private Date endTime;

    /** 最大预约人数 */
    @Excel(name = "最大预约人数")
    private Long maxAppointments;

    /** 剩余可预约人数 */
    @Excel(name = "剩余可预约人数")
    private Long availableSlots;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setExpertId(Long expertId) 
    {
        this.expertId = expertId;
    }

    public Long getExpertId() 
    {
        return expertId;
    }

    public void setScheduleDate(Date scheduleDate) 
    {
        this.scheduleDate = scheduleDate;
    }

    public Date getScheduleDate() 
    {
        return scheduleDate;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setMaxAppointments(Long maxAppointments) 
    {
        this.maxAppointments = maxAppointments;
    }

    public Long getMaxAppointments() 
    {
        return maxAppointments;
    }

    public void setAvailableSlots(Long availableSlots) 
    {
        this.availableSlots = availableSlots;
    }

    public Long getAvailableSlots() 
    {
        return availableSlots;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String getExpertName() {
        return expertName;
    }

    public void setExpertName(String expertName) {
        this.expertName = expertName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("expertId", getExpertId())
            .append("scheduleDate", getScheduleDate())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("maxAppointments", getMaxAppointments())
            .append("availableSlots", getAvailableSlots())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
